package org.jeecg.modules.online.desform.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.online.desform.entity.DesignFormRoute;
import org.springframework.transaction.annotation.Transactional;

/**
 * 表单设计器路由跳转配置表
 *
 * @Author: jeecg-boot
 * @Date: 2020-03-25
 * @Version: V1.0
 */
public interface IDesignFormRouteService extends IService<DesignFormRoute> {

    /**
     * 查询出有效的路由地址
     *
     * @param desformCode code
     */
    DesignFormRoute getEffectiveRoute(String desformCode);

    /**
     * 根据 ID 选择修改
     *
     * @param designFormRoute 实体对象
     */
    @Transactional(rollbackFor = Exception.class)
    boolean editById(DesignFormRoute designFormRoute);

}
